'use strict'

define(['jquery', 'datetimepicker','bootstrap', 'select2', 'shiftform', 'validate', 'validate.en'], function($) {
    return {
    	init : function() {
			this.initOpen();
			this.initClose();
		},
		
        initOpen : function() {

            $(document).on('shown.bs.modal', '#open', function(e) {
                var $form = $(document).find("form") // bind shiftform
                $form.shiftform();
            });

        },
        
        initClose : function() {

            $(document).on('shown.bs.modal', '#close', function(e) {
                var $form = $(document).find("form") // bind shiftform
                $form.shiftform();
            });
        }
        
    }
})
